---
layout: m1x_soap
title: Invoice Cancel
---
				    
<h2><a name="sales_order_invoice.cancel-Module%3AMageSales"></a>Module: Mage_Sales</h2>


<h4><a name="sales_order_invoice.cancel-Resource%3Asalesorderinvoice"></a>Resource: sales_order_invoice</h4>

<p><b>Aliases</b>:</p>
<ul>
	<li>order_invoice</li>
</ul>


<h5><a name="sales_order_invoice.cancel-Method%3A"></a>Method:</h5>

<ul>
	<li>sales_order_invoice.cancel (SOAP V1)</li>
	<li>salesOrderInvoiceCancel (SOAP V2)</li>
</ul>


<p>Allows you to cancel the required invoice. Note that not all order invoices can be canceled. Only some payment methods support canceling the order invoice (e.g., Google Checkout, PayPal Pro, PayPal Express Checkout).</p>

<p><b>Aliases</b>:</p>
<ul>
	<li>order_invoice.cancel</li>
</ul>



<p><b>Arguments</b>:</p>

<table><tbody>
<tr>
<th> Type </th>
<th> Name </th>
<th> Description </th>
</tr>
<tr>
<td> string </td>
<td> sessionId <br class="atl-forced-newline" /> </td>
<td> Session ID </td>
</tr>
<tr>
<td> string </td>
<td> invoiceIncrementId <br class="atl-forced-newline" /> </td>
<td> Invoice increment ID </td>
</tr>
</tbody></table>


<p><b>Returns</b>:</p>

<table><tbody>
<tr>
<th> Type </th>
<th> Description </th>
</tr>
<tr>
<td> boolean </td>
<td> True if the order invoice is canceled. </td>
</tr>
</tbody></table>


<h4><a name="sales_order_invoice.cancel-Examples"></a>Examples</h4>

<h5><a name="sales_order_invoice.cancel-RequestExampleSOAPV1"></a>Request Example SOAP V1</h5>

<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<div>
		<pre class="theme: Default; brush: php; gutter: false">$proxy = new SoapClient('http://magentohost/api/soap/?wsdl');
$sessionId = $proxy-&gt;login('apiUser', 'apiKey');

$invoiceIncrementId = '100000013';

$result = $proxy-&gt;call(
    $session,
    'sales_order_invoice.cancel',
    $invoiceIncrementId
);</pre>
		</div>
</div></div>

				    
Create the Magento file system owner                   			    
